<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML >
<html lang="en">
<head>
<base href="<%=basePath%>">
<meta charset="UTF-8">
<title>简历登记.jsp</title>


<script type="text/javascript" src="feng/js/jquery-1.8.3.js"></script>

<link rel="stylesheet" href="feng/css/cal.css"  type="text/css" />
<link rel="stylesheet" href="feng/css/my.css"  type="text/css" />
<script src="feng/js/cal.js" type="text/javascript" charset="gbk"></script>

<link rel="stylesheet" type="qiang/text/css" href="feng/css/header.css">
<script type="text/javascript" src="feng/js/header.js"></script>

<link rel="stylesheet" type="text/css" href="feng/css/left.css">
<script type="text/javascript" src="feng/js/left.js"></script>

<link rel="stylesheet" type="text/css" href="feng/css/link.css">
<link rel="stylesheet" type="text/css" href="feng/css/query.css">
<link rel="stylesheet" type="text/css" href="feng/css/result.css">

<script type="text/javascript">
	$(function(){
		$("table tr:odd").css("background-color","#C9C9C9");
		$("#add").click(function(){
		$("#form1").submit();
		})
		$("#back").click(function(){
		window.location.href="feng/简历管理.jsp";
		})
		var message=$("#xinxi").val();
		if(!message==""){
		alert(message)
		};
		$("#dept").hide();
		$("#zhiwei").toggle(function(){
		if($("#dept").css("display")=='none'){
		
		$("#dept").show();
		}else{
			$("#dept").hide();
		}
		
		},function(){
		if($("#dept").css("display")=='none'){
		
		$("#dept").show();
		}else{
			$("#dept").hide();
		}
		});
		$("#fanhui").click(function(){
		$("#dept").hide();
		});
		/* 查询 */
		$("#chaxun").click(function(){
		
		var c1=$("#s1").val();
		var c2=$("#s2").val();
		var c3=$("#s3").val();
		$.post("zhiwei","zhiweiname="+c1+"&zhiweicode="+c2+"&zhiweidname="+c3,
		  function(data){
		  var tr=null;
		  for(var i=0;i<data.length;i++){
		  	tr+="<tr><td><input type='radio' name='radio1' class='l1' value='"
		  	+data[i].id+"'></td><td><input type='text' id='r"+data[i].id+"' value='"
		  	+data[i].code+"'></td><td><input type='text' id='t"+data[i].id+"' value='"
		  	+data[i].name+"'></td><td><input type='text' id='y"+data[i].id+"' value='"
		  	+data[i].classify+"'></td><td><input type='text'  value='"
		  	+data[i].dept.dname+"'></td></tr>";
		  }
		   $("#body").html("");
		  $("#body").append(tr);
		  },"json"
		);
		});
		var w1;
		var w2;
		var w3;
		var w4;
		$(".l1").live("click",function(){
		w1=$(this).val();
		 w2=$("#r"+w1).val();
		
		 w3=$("#t"+w1).val();
		
		 w4=$("#y"+w1).val();
		 
		});
		$("#queren").click(function(){
		$("#w11").val(w1);
		$("#w22").val(w3);
		$("#w33").val(w2);
		$("#w44").val(w4);
		$("#dept").hide();
		})
		
	});
</script>
<style type="text/css">
.f1{height: 20px;}
#table{cellpadding:0px;cellspacing:2px;}
#table tr td{border: 1px solid #ECECEC;text-align: center;}


</style>

</head>

<body>
	<div id=all
		style="width:1050px ;height: 2000px;background-color: #C9C9C9;margin: 0 auto;position:relative;top:30px;">
		<div id="header"
			style="width: 1030px; height:100px;position:absolute;left: 10px;top:0px;background-color:white;">
			<%@ include file="header.jsp"%>
		</div>
		<div id="left"
			style="height: 1000px;width: 200px; position:absolute;left: 10px;top:100px;background-color:white;">
			<%@ include file="left.jsp"%>
		</div>
		<div id="right"
			style="height: 1000px;width: 810px; ;position:absolute;left: 230px;top:100px;
			background-color:#F4F4F4;">
		<div id="h1" style="width:787px;float:left;padding:14px 21px;overflow:hidden;font-size:13px">
        	<div style="margin-bottom:20px">
            	招聘管理>>简历管理>>简历登记
            </div>
            <div style="margin-bottom:18px;overflow:hidden">
            <form action="feng/add"  method="post" id="form1" enctype="multipart/form-data">
            <input type="hidden" id="w11" name="zhiweibiao.id">
            	     <div style="float:left;width:95px">应聘职位名称：</div><div style="float:left">
          <input type="text" style="width:170px;vertical-align:middle" class="li1" id="w22" name="zhiweibiao.name"><img src="feng/image/u260.png" id="zhiwei" style="vertical-align:middle;cursor: pointer;"></img></div>
                	<div style="float:left;width:95px;margin-left:20px" >应聘职位代码：</div><div style="float:left">
          <input type="text" style="width:133px" class="li1" id="w33" name="zhiweibiao.code"></div>
                    <div style="float:left;width:80px;margin-left:40px">职位分类：</div><div style="float:left">
          <input type="text" style="width:109px" class="li1" id="w44" name="zhiweibiao.classify"></div>
                    </div>
            
            			<div style="margin-bottom:18px;overflow:hidden">
            	    <div style="float:left;width:95px">姓名：</div><div style="float:left">
            	<input type="text" style="width:170px" class="li1" name="jianli.name" value="${jianli.name}"></div>
                	<div style="float:left;width:95px;margin-left:50px">性别：</div><div style="float:left">
                <select  class="li1" style="width:133px" name="jianli.sex" value="${jianli.sex}">
                     <option value="">--请选择--</option>
                     <option value="男" <c:if test="${jianli.sex=='男'}">selected</c:if>>男</option>
                     <option value="女" <c:if test="${jianli.sex=='女'}">selected</c:if>>女</option>
                
                
                </select></div>
                   <div style="float:left;width:80px;margin-left:40px">招聘类型：</div><div style="float:left">
                <select  class="li1" style="width:109px;margin-left: 3px" name="jianli.type" value="${jianli.type}">
                   <option value="">--请选择--</option>
                   <option value="1" <c:if test="${jianli.type==1}">selected</c:if>>校园招聘</option>
                   <option value="2" <c:if test="${jianli.type==2}">selected</c:if>>社会招聘</option>
                   </select></div>
                     </div>
            
                <div style="margin-bottom:18px;overflow:hidden">
                <div style="float:left;width:95px">Email：</div><div style="float:left">
            <input type="text" style="width:170px" class="li1" name="jianli.email" value="${jianli.email}"></div>
                <div style="float:left;width:95px;margin-left:50px">联系电话：</div><div style="float:left">
           <input type="text" style="width:133px" class="li1" name="jianli.telephone" value="${jianli.telephone}"></div>
                <div style="float:left;width:80px;margin-left:40px">户口所在地：</div><div style="float:left">
           <input type="text" style="width:109px" class="li1" name="jianli.hukou" value="${jianli.hukou}"></div>
               </div>
            
               <div style="margin-bottom:18px;overflow:hidden">
               <div style="float:left;width:95px">住址：</div><div style="float:left">
           <input type="text" style="width:446px" class="li1" name="jianli.address" value="${jianli.address}"></div>
               
                 <div style="float:left;width:80px;margin-left:40px;padding-left: 3px">政治面貌：</div><div style="float:left">
            <input type="text" style="width:109px;margin-left: 1px" class="li1" name="jianli.mianmao" value="${jianli.mianmao}"></div>
                 </div>
            
                 <div style="margin-bottom:18px;overflow:hidden">
            	 <div style="float:left;width:95px">身份证号：</div><div style="float:left">
            <input type="text" style="width:170px" class="li1" name="jianli.idcard" value="${jianli.idcard}"></div>
                 <div style="float:left;width:95px;margin-left:50px">毕业院校：</div><div style="float:left">
            <input type="text" style="width:133px" class="li1" name="jianli.school" value="${jianli.school}"></div>
                <div style="float:left;width:80px;margin-left:40px">学历：</div><div style="float:left">
            <select  class="li1" style="width:109px" name="jianli.xueli" value="${jianli.xueli}">
                <option value="">--请选择--</option>
                <option value="专科" <c:if test="${jianli.xueli=='专科'}">selected</c:if>>专科</option>
                <option value="本科" <c:if test="${jianli.xueli=='本科'}">selected</c:if>>本科</option>
                <option value="硕士" <c:if test="${jianli.xueli=='硕士'}">selected</c:if>>硕士</option>
                <option value="博士" <c:if test="${jianli.xueli=='博士'}">selected</c:if>>博士</option>
                </select></div>
                 </div>
            
                 <div style="margin-bottom:18px;overflow:hidden">
                 <div style="float:left;width:95px">专业：</div><div style="float:left">
            <input type="text" style="width:170px" class="li1" name="jianli.zhuanye" value="${jianli.zhuanye}"></div>
                <div style="float:left;width:95px;margin-left:50px">工作经验：</div><div style="float:left">
            <input type="text" style="width:133px" class="li1" name="jianli.jingyan" value="${jianli.jingyan}"></div>
                <div style="float:left;width:80px;margin-left:40px">薪资要求：</div><div style="float:left">
            <input type="text" style="width:109px" class="li1" name="jianli.xinziyaoqiu" value="${jianli.xinziyaoqiu}"></div>
                </div>
            
             
                 <div style="margin-bottom:18px;overflow:hidden">
            	<div style="float:left;width:95px">是否在职：</div><div style="float:left">
           <select  class="li1" style="width:172px" name="jianli.statusZaizhi" value="${jianli.statusZaizhi}">
                <option value="">--请选择--</option>
                <option value="离职" <c:if test="${jianli.statusZaizhi=='离职'}">selected</c:if>>离职</option>
                <option value="在职" <c:if test="${jianli.statusZaizhi=='在职'}">selected</c:if>>在职</option>
                </select></div>
                 <div style="float:left;width:95px;margin-left:50px">是否应届生：</div><div style="float:left">
          <select  class="li1" style="width:136px" name="jianli.yignjie" value="${jianli.yignjie}">
                <option value="">--请选择--</option>
                <option value="是" <c:if test="${jianli.yignjie=='是'}">selected</c:if>>是</option>
                <option value="否" <c:if test="${jianli.yignjie=='否'}">selected</c:if>>否</option>
                </select></div>
                <div style="float:left;width:80px;margin-left:40px">登记时间：</div><div style="float:left"><!--日历 begin-->
               
                <div class="data_box" id="data_box" style="position:absolute;">
         <input type="text"  class="showDate"  style="width:96px;height:22px;" name="jianli.time"  value="<f:formatDate value="${jianli.time}" pattern="yyyy-MM-dd"></f:formatDate>"/>
           		 <div class="sel_date dn" style="background-color:#E3E5ED;">
                <div class="clearfix">
                    <span class="prev_y fl">&lt;&lt;</span><span class="prev_m fl">&lt;</span>
                    <span class="next_y fr">&gt;&gt;</span><span class="next_m fr">&gt;</span>
                    <div class="show_mn">
                        <input type="text" class="showDate2 year" value="选择年份" style="background-color:#E3E5ED;color:black"/>
                        <span class="ml5 mr5">年</span>
                        <input type="text" class="showDate2 month" value="选择月份" style="background-color:#E3E5ED;color:black"/>
                        <span class="ml5">月</span>
                    </div>              
                </div>
                <table class="data_table">
                    <thead>
                        <tr>
                            <td>日</td><td>一</td><td>二</td><td>三</td><td>四</td><td>五</td><td>六</td>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>1</td><td></td><td></td><td></td><td></td><td></td><td></td>
                        </tr>
                        <tr>
                            <td>1</td><td></td><td></td><td></td><td></td><td></td><td></td>
                        </tr>
                        <tr>
                            <td></td><td></td><td></td><td></td><td></td><td></td><td></td>
                        </tr>
                        <tr>
                            <td></td><td></td><td></td><td></td><td></td><td></td><td></td>
                        </tr>
                        <tr>
                            <td></td><td></td><td></td><td></td><td></td><td></td><td></td>
                        </tr>
                        <tr>
                            <td></td><td></td><td></td><td></td><td></td><td></td><td>4</td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
        <!--日历 end--></div>
            </div>
            
                <div style="margin-bottom:18px;overflow:hidden">
            	<div style="float:left;width:95px">个人履历：</div><div style="float:left">
       <textarea style="width:673px;height:134px" name="jianli.lvli" >${jianli.lvli}</textarea></div>
                </div>
            
            <div style="margin-bottom:18px;overflow:hidden">
            	<div style="float:left;width:95px">简历附件：</div><div>
          <input type="file"  style="width: 200px" name="pic"></div>
                </div>
            
              <div style="margin-bottom:18px;overflow:hidden">
            	<div style="float:left;width:95px">是否推荐面试：</div>
                <div style="float:left;width:95px">
         <select  class="li1" style="width:78px" name="jianli.shifoutuijian" value="${jianli.shifoutuijian}">
                <option value="">--请选择--</option>
                <option value="是" <c:if test="${jianli.shifoutuijian=='是'}">selected</c:if>>是</option>
                <option value="否" <c:if test="${jianli.shifoutuijian=='否'}">selected</c:if>>否</option>
                </select></div>
               <div style="float:left;width:65px;margin-left:35px">推荐人：</div> <div style="float:left;">
       <input type="text" style="width:109px" class="li1" name="jianli.tuijianren" value="${jianli.tuijianren}"></div>
               <div style="float:left;width:75px;margin-left:50px">推荐时间：</div> <div style="float:left;">
       <input type="text" style="width:109px" class="li1" name="jianli.tuijiantime" value="${jianli.tuijiantime}"></div>
                
            </div>
            
             <div style="margin-bottom:18px;overflow:hidden">
            	<div style="float:left;width:95px">推荐面试意见：</div><div style="float:left">
       <textarea style="width:673px;height:50px" name="jianli.tuijianyijian" >${jianli.tuijianyijian}</textarea></div>
              </div>
             
            	<div style="width:60px;height:24px;background-image:url(feng/image/styled_button_u243_mouseDown.png);color:#FFF;text-align:center;float:left;margin-left:315px;margin-right:25px;cursor:pointer" id="add">保存</div>
            	<div style="width:60px;height:24px;background-image:url(feng/image/styled_button_u243_mouseDown.png);color:#FFF;text-align:center;float:left;cursor:pointer" id="back">返回</div>
           </form>
    </div>
		
		<input type="hidden" value="${message}" id="xinxi">
		
		
		
		
		
		
        </div>
	</div>
	</div>
		<div id="dept" style="width:660px;height:365px;position: absolute;top:220px;left:530px; border: 1px solid  #EDEDED;background: rgba(245,245,245,0.8)">
		<div style="height:27px;padding-left: 13px;padding-top: 3px;background-color: #c9c9c9">职位列表</div>
		<div style="height:340px;padding: 13px">
		职位名称：<input type="text" style="width:100px" class="f1" id="s1">&nbsp;
		职位编码：<input type="text" style="width:100px"  class="f1" id="s2">&nbsp;
		所属部门：<select  style="width:110px" id="s3"  class="f1">
		<option value="">请选择</option>
		<option value="质量管理部">质量管理部</option>
		<option value="产品设计中心">产品设计中心</option>
		<option value="平台研发中心">平台研发中心</option>
		<option value="产品管理部">产品管理部</option>
		<option value="人力资源中心">人力资源中心</option>
		<option value="财务部">财务部</option>
		</select>
		<div style="width:60px;height:24px;background-image: url('feng/image/styled_button_u243_mouseDown.png');float: right;color: white;text-align: center;cursor: pointer;" id="chaxun">查询</div>
				<div style="width:60px;height:24px;background-image: url('feng/image/styled_button_u243_mouseDown.png');float: left;color: white;text-align: center;cursor: pointer;margin-top: 20px;margin-right: 20px" id="queren">确认</div>
				<div style="width:60px;height:24px;background-image: url('feng/image/styled_button_u243_mouseDown.png');float: left;color: white;text-align: center;cursor: pointer;margin-top: 20px" id="fanhui">返回</div>
		<div style="margin-top: 50px">
		<table id="table" >
		<tr>
			<td style="width: 37px">选择</td>
			<td style="width: 140px">职位编码</td>
			<td style="width: 167px">职位名称</td>
			<td style="width: 186px">职位分类</td>
			<td style="width: 204px">所属部门</td>
		</tr>
		<tbody id="body">
		</tbody>
		</table>
		
		</div>
		</div>
		</div>
		</div>
</body>
</html>
